/* SECTION 1: BARRE DE NAVIGATION */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #0d47a1;
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: #555;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 5px 0;
    position: relative;
}

.nav-links a:hover {
    color: #0d47a1;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #0d47a1;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.active-link {
    color: #0d47a1 !important;
}

.active-link::after {
    width: 100% !important;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #555;
    margin: 5px;
    transition: 0.3s;
}
/* RESPONSIVE DESIGN */
@media screen and (max-width: 992px) {

}

@media screen and (max-width: 768px) {

    .burger {
        display: block;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 76px; /* Hauteur de la navbar */
        height: calc(100vh - 76px);
        background-color: white;
        flex-direction: column;
        width: 70%;
        text-align: center;
        transition: right 0.5s ease;
        box-shadow: -5px 0 10px rgba(0, 0, 0, 0.1);
        padding: 30px 0;
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .toggle .line2 {
        opacity: 0;
    }

    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* Ajout d'une couche sombre pour l'arrière-plan quand le menu est ouvert */
    .backdrop {
        position: fixed;
        top: 76px; /* Hauteur de la navbar */
        left: 0;
        width: 100%;
        height: calc(100vh - 76px);
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 998;
    }

    .backdrop.active {
        opacity: 1;
        visibility: visible;
    }
}

@media screen and (max-width: 576px) {

    .nav-links {
        width: 80%; /* Menu plus large sur les très petits écrans */
    }

}